﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchModifyForwarderNo.aspx.cs" Inherits="RGPWEB.EN.OrderS.BatchModifyForwarderNo" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="../../inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
<link href="../../inc/Style/index.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../../../inc/Script/My97DatePicker/WdatePicker.js"></script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <fieldset id="1" style="width:98%">
                <legend>Search Conditions</legend>
                <table style="width:100%;">
                    <tr>
                        <td>
                            Send Date Start：</td>
                        <td>
                            <asp:TextBox ID="txt_start" runat="server" onClick='WdatePicker()'></asp:TextBox>
                        </td>
                        <td>
                            Send Date End：</td>
                        <td>
                            <asp:TextBox ID="txt_end" runat="server" onClick='WdatePicker()'></asp:TextBox>
                        </td>
                        <td>
                            Bar Code：</td>
                        <td>
                            <asp:TextBox ID="txt_OrderNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            Sender Phone：</td>
                        <td>
                            <asp:TextBox ID="txt_sendtel" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Sender：</td>
                        <td>
                            <asp:TextBox ID="txt_sendmen" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            Goal country ：</td>
                        <td>
                            <asp:DropDownList ID="ddl_country" runat="server">
                            </asp:DropDownList>
                        </td>                    
                        <td>
                            Sender Address：</td>                    
                        <td>
                            <asp:TextBox ID="txt_sendadd" runat="server"></asp:TextBox>
                        </td>                    
                        <td>
                                Receiver：</td>                    
                        <td>
                            <asp:TextBox ID="txt_recmen" runat="server"></asp:TextBox>
                        </td>                    
                    </tr>
                    <tr>
                        <td>
                            Receiver Phone：</td>
                        <td>
                            <asp:TextBox ID="txt_rectel" runat="server"></asp:TextBox>
                        </td>
                        <td>
                                Receiver Address：</td>
                        <td>
                            <asp:TextBox ID="txt_recadd" runat="server"></asp:TextBox>
                        </td>                    
                        <td>
                            Custmoers：</td>                    
                        <td>
                            <asp:ComboBox ID="cmb_list" runat="server" AutoCompleteMode="SuggestAppend" 
                                DropDownStyle="DropDownList">
                            </asp:ComboBox>
                            <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" />
                        </td>                    
                        <td colspan="2">
                            <asp:Button ID="btn_search" runat="server" Text="Search" 
                                onclick="btn_search_Click" />
                        </td>                    
                    </tr>
                    </table>
            </fieldset>
            <fieldset id="Fieldset1" style="width:98%">
            <legend>Result</legend>
            <table border="1" cellpadding="1" cellspacing="1" style="width:100%;">
                <tr>
                    <td>
                         <asp:GridView ID="grv_list" runat="server" 
                            AutoGenerateColumns="False" DataKeyNames="O_ID" onrowdatabound="grv_list_RowDataBound" 
                            CssClass="Grid" AllowSorting="True">
                            <FooterStyle CssClass="GridFooter" />
                            <RowStyle CssClass="Row" />
                            <HeaderStyle CssClass="HeadingCell" />
                            <Columns>
                                <asp:TemplateField HeaderText="Custmoers Code">
                                    <ItemStyle Width="120px"></ItemStyle>
                                    <ItemTemplate>
                                        <asp:Label ID="lbl_code" runat="server" Text='<%#Eval("O_SCNO") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderText="Bar Code" DataField="O_OrderNo" ItemStyle-Width="150px" >
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Sender" DataField="O_SMen" ItemStyle-Width="150px" >
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Send Date" DataField="O_SendDate" ItemStyle-Width="150px" 
                                    DataFormatString="{0:yyyy-MM-dd}">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Sender Phone" DataField="O_STel" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Receiver" DataField="O_RMen" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Receiver Phone" DataField="O_RTel" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Goal country" DataField="O_RCountry" ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:BoundField HeaderText="Transports the channel" DataField="O_ForwarderName" 
                                    ItemStyle-Width="150px">
        <ItemStyle Width="150px"></ItemStyle>
                                </asp:BoundField>
                                <asp:TemplateField HeaderText ="Transportation numbers" ItemStyle-Width="150px">
                                    <ItemTemplate>
                                        <asp:TextBox ID="txt_forno" runat="server" Text='<%#Eval("O_ForwarderNO") %>'></asp:TextBox>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Operating" ItemStyle-Width="5%">
                                    <ItemTemplate>                                
                                        <asp:CheckBox ID="chb_forwarder" runat="server" />
                                    </ItemTemplate><ItemStyle Width="5%"></ItemStyle>
                                </asp:TemplateField> 
                            </Columns>
                       </asp:GridView>
                    </td>                    
                </tr>  
                <tr>
                    <td>
                        <webdiyer:AspNetPager runat="server"  HorizontalAlign="Center" 
                            Width="100%" PageIndexBoxType="DropDownList" 
                            PageSize="10" CssClass="paginator" CurrentPageButtonClass="cpb"
                            FirstPageText="First" LastPageText="Last" NextPageText="Next" PrevPageText="Up" 
                            onpagechanging="anp_list_PageChanging" ID="anp_list" AlwaysShow="True">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>    
                 <tr>
                    <td>
                        <table>
                            <tr>
                                <td><asp:Button ID="btn_save" runat="server" onclick="btn_forward_Click" />
                                    <asp:Button ID="btn_all" runat="server" onclick="btn_all_Click" Text="All elects" />
                                    <asp:Button ID="btn_all_no" runat="server" onclick="btn_all_no_Click" Text="All not elect" /></td>   
                            </tr>
                        </table>
                    </td>
                </tr>           
            </table>
        </fieldset>
        </div>
    </form>
</body>
</html>
